package com.sskj.ffex.v.activity;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.sskj.ffex.R;
import com.sskj.ffex.common.App;
import com.sskj.ffex.common.widget.ToolBarLayout;
import com.sskj.ffex.p.base.BasePresenter;
import com.sskj.ffex.v.base.BaseActivity;

import butterknife.BindView;

/**
 * ProjectName：期权
 * DESC: (类描述)认证成功
 * Created by hqf on 2018/10/19 14:05
 * updateName:(修改人名称)
 * updateTime:(修改时间)
 * updateDesc:(修改内容)
 */
public class CommonActivity extends BaseActivity {


    @BindView(R.id.toolBar)
    ToolBarLayout toolBar;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_common;
    }

    @Override
    public BasePresenter getPresenter() {
        return new BasePresenter();
    }

    @Override
    protected void onViewBinding() {
        toolBar.setTitle(App.INSTANCE.getString(R.string.strCommonActivity200));
        toolBar.setLeftButtonOnClickLinster(v -> finish());
    }

    public void buttonClick(View v) {
        startActivity(new Intent(this, MainActivity.class));
    }

    public void buttonClickHign(View v) {  // 高级认证
        VerifyGuideActivity.start(this);
        finish();
    }

    public static void start(Context context) {
        Intent intent = new Intent(context, CommonActivity.class);
        context.startActivity(intent);
    }
}
